package com.api.phm.domain.query.score;

import com.alibaba.fastjson2.JSONObject;
import lombok.Getter;
import lombok.Setter;
import org.apache.commons.lang3.StringUtils;

import java.util.List;

//@Data
@Getter
@Setter
public class PhmLineScoreQuery {
    private Long lineId;
    //    private String lineName;
    private JSONObject localLineName;
    private List<PhmRobotScoreQuery> children;

    public void setLocalLineName(String localLineName) {
        if (StringUtils.isNotBlank(localLineName)) {
            this.localLineName = JSONObject.parseObject(localLineName);
        } else {
            this.localLineName = null;
        }
    }
}
